package com.fasteat.mall.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author hy
 * @since 2021-02-19
 */
@TableName("t_mall_product_specification")
@ApiModel(value="TMallProductSpecification对象", description="")
public class ProductSpecification implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "规格id")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "商品id")
    private String productId;

    @ApiModelProperty(value = "重量、规格")
    private String weight;

    @ApiModelProperty(value = "储存方式")
    private String storeMethod;

    @ApiModelProperty(value = "保质期")
    private String expirationDate;

    @ApiModelProperty(value = "产地")
    private String placeOfOrigin;

    @ApiModelProperty(value = "生产日期")
    private String dateOfManufacture;

    @ApiModelProperty(value = "配送范围")
    private String deliveryArea;

    @ApiModelProperty(value = "售后须知")
    private String afterSaleMustKnow;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    @ApiModelProperty(value = "逻辑删除,是1、否0")
    @TableField(fill = FieldFill.INSERT)
    private Integer isDeleted;

    @ApiModelProperty(value = "乐观锁")
    @Version
    @TableField(fill = FieldFill.INSERT)
    private Integer version;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }

    public String getStoreMethod() {
        return storeMethod;
    }

    public void setStoreMethod(String storeMethod) {
        this.storeMethod = storeMethod;
    }

    public String getExpirationDate() {
        return expirationDate;
    }

    public void setExpirationDate(String expirationDate) {
        this.expirationDate = expirationDate;
    }

    public String getPlaceOfOrigin() {
        return placeOfOrigin;
    }

    public void setPlaceOfOrigin(String placeOfOrigin) {
        this.placeOfOrigin = placeOfOrigin;
    }

    public String getDateOfManufacture() {
        return dateOfManufacture;
    }

    public void setDateOfManufacture(String dateOfManufacture) {
        this.dateOfManufacture = dateOfManufacture;
    }

    public String getDeliveryArea() {
        return deliveryArea;
    }

    public void setDeliveryArea(String deliveryArea) {
        this.deliveryArea = deliveryArea;
    }

    public String getAfterSaleMustKnow() {
        return afterSaleMustKnow;
    }

    public void setAfterSaleMustKnow(String afterSaleMustKnow) {
        this.afterSaleMustKnow = afterSaleMustKnow;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public ProductSpecification(String id, String productId, String weight, String storeMethod, String expirationDate, String placeOfOrigin, String dateOfManufacture, String deliveryArea, String afterSaleMustKnow, Date gmtCreate, Date gmtModified, Integer isDeleted, Integer version) {
        this.id = id;
        this.productId = productId;
        this.weight = weight;
        this.storeMethod = storeMethod;
        this.expirationDate = expirationDate;
        this.placeOfOrigin = placeOfOrigin;
        this.dateOfManufacture = dateOfManufacture;
        this.deliveryArea = deliveryArea;
        this.afterSaleMustKnow = afterSaleMustKnow;
        this.gmtCreate = gmtCreate;
        this.gmtModified = gmtModified;
        this.isDeleted = isDeleted;
        this.version = version;
    }

    public ProductSpecification() {
    }
}
